package cn.bby.query.base.api.req;

import cn.bby.query.base.model.dto.InterfaceMetaInfo;
import jakarta.validation.Valid;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author ben
 * @since 2025/4/15 23:31
 */
@Data
@NoArgsConstructor
public class PushInterfaceInfoReq implements Serializable {
    @Serial
    private static final long serialVersionUID = 3987242740798107217L;
    /**
     * 服务名称
     */
    private String serverName;

    /**
     * 接口信息
     */
    @Valid
    private List<InterfaceMetaInfo> interfaceMetaInfos;

    public PushInterfaceInfoReq(String serverName, List<InterfaceMetaInfo> interfaceMetaInfos) {
        this.serverName = serverName;
        this.interfaceMetaInfos = interfaceMetaInfos;
    }
}
